async function getCurrentTab() {
  let queryOptions = { active: true, lastFocusedWindow: true };
  // `tab` will either be a `tabs.Tab` instance or `undefined`.
  let [tab] = await chrome.tabs.query(queryOptions);
  return tab;
}

window.btn1.onclick = async () => {
  const tab = await getCurrentTab();
  console.log(tab);
  chrome.scripting.executeScript({
    target: { tabId: tab.id },
    files: ["scripts/post-resume.js"]
  });
};
